package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.ProductSpecs;
import com.example.mall.dto.ProductSpecsDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.ProductSpecsQuery;

import java.util.List;


/**
 * <p>
 * 商品规格表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-06
 */
public interface IProductSpecsService extends IService<ProductSpecs> {

    //分页查询商品规格表信息
    PageDTO<ProductSpecsDto> queryPage(ProductSpecsQuery productSpecsQuery);

    //根据id查询商品规格表信息
    ProductSpecs queryProductSpecsById(Long id);

    //查询全部商品规格表信息
    List<ProductSpecs> queryProductSpecsList();

    //新增商品规格表
    void insert(ProductSpecsDto productSpecsDto);

    //修改商品规格表信息
    void update(ProductSpecsDto productSpecsDto);

    //删除商品规格表信息
    void delete(Long id);

    //批量删除商品规格表信息
    void deleteBatch(List<Long> ids);
}
